#ifndef SPRITE_H
#define SPRITE_H

#include "Image.h"


struct COLLISIONINFO {
	bool left, right, top, bottom;
	SWORD distanceY;	//distancia que falta/sobra para llegar al objeto
	SWORD distanceX;	//distancia que falta/sobra para llegar al objeto, eje horizontal
};

struct SOLIDBASE {
	BYTE offset;
	BYTE length;
};


class Sprite: public Image {


protected:
	float speed_x;
	float speed_y;

	friend class Scroll;
	friend class ScrollLayer;



	SOLIDBASE bottomBase;
	
	
	void init();

public:
	Sprite();

	void goRight();
	void goLeft();
	void jump();
	void stop();

	void move(int x, int y);
	void relativeMove(int x, int y);

};

class Pelota: public Sprite {

	void init();

public:
	void move(int x, int y);
	void relativeMove(int x, int y);
};


#endif

